package com.grt.common.convert.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import com.grt.admin.domain.Article;
import com.grt.admin.domain.dto.ArticleDTO;
import com.grt.common.convert.DOConvertDTO;

@Component
public class ArticleDOConvertDTO implements DOConvertDTO<Article, ArticleDTO> {

	@Override
	public ArticleDTO convert(Article oArticle) {
		ArticleDTO oArticleDTO = new ArticleDTO();
		BeanUtils.copyProperties(oArticle, oArticleDTO);
		return oArticleDTO;
	}

}
